package com.ai.dmc.utils.pagination;

import java.io.Serializable;
import java.util.List;

/**
 * Description:分页类
 * date 2015年9月19日 下午3:51:25 
 * author zlb
 */
public class Pagination<T> implements Serializable {
	
	private static final long serialVersionUID = 1245852715943493845L;

	/**
	 * 当前页数
     */
    private Integer pageNumber = 1;

    /**
     * 记录总数
     */
    private Integer dataTotal = 0;

    private List<T> pageContent;// 每页的内容

    public Pagination()
    {
    }

    public Pagination(List<T> list)
    {
        this.pageContent = list;
    }

    public Pagination(Integer dataTotal, List<T> list)
    {
        this.dataTotal = dataTotal;
        this.pageContent = list;
    }

    public Integer getPageNumber()
    {
        return pageNumber;
    }

    public Integer getDataTotal()
    {
        return dataTotal;
    }

	public List<T> getPageContent() {
		return pageContent;
	}
}
